/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package agenda;

import agenda.beans.Aniversario;
import agenda.beans.Compromisso;
import agenda.beans.Evento;
import agenda.beans.Feriado;
import agenda.beans.Tarefa;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author rooke
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        try {

            Compromisso t = new Compromisso();

            ArrayList<Evento> teste = new ArrayList<Evento>();

            Compromisso t1 = new Compromisso();
            Compromisso t2 = new Compromisso();
            Compromisso t3 = new Compromisso();
            Compromisso t4 = new Compromisso();
            Compromisso t5;

//        teste.add(t1);
//        teste.add(t2);
//        teste.add(t3);
//        teste.add(t4);
//        teste.add(t5);



//            t1.setDataInicio(new Date());
//            t1.setDataFim(new Date(2010, 11, 15, 22, 00));
//            t1.setDescricao("oioioioio1111");

            t2.setDataInicio(new Date(2010, 11, 1, 2, 00));
            t2.setDataFim(new Date(2010, 11, 2, 10, 00));
            t2.setDescricao("oioioioio222");
//
//            t3.setDataInicio(new Date(2010, 11, 2, 10, 00));
//            t3.setDataFim(new Date(2010, 11, 3, 18, 00));
//            t3.setDescricao("oioioioio333");

//            t1.add();
//            t2.add();
//            t3.add();



//            Aniversario a1 = new Aniversario();
//            a1.setAniversariante("Rooke");
//            a1.setDia(new Date(2010, 11, 4));
//            a1.setFesta(new Date(2010, 11, 5, 11, 50));
//            a1.add();
//
            Aniversario a2 = new Aniversario();
            a2.setAniversariante("Fran");
            a2.setDia(new Date(2010, 11, 6));
            a2.setFesta(new Date(2010, 11, 7, 11, 50));
            a2.add();
//
//            Aniversario a3 = new Aniversario();
//            a3.setAniversariante("Fael");
//            a3.setDia(new Date(2010, 11, 8));
//            a3.setFesta(new Date(2010, 11, 8, 11, 50));
//            a3.add();
//
//            Aniversario a4 = new Aniversario();
//            a4.setAniversariante("Marina");
//            a4.setDia(new Date(2010, 11, 3));
//            a4.setFesta(new Date(2010, 11, 11, 11, 50));
//            a4.add();
//
//
            Tarefa ta1 = new Tarefa(new Date(2010, 11, 12), "tarefa1", 1);
            ta1.add();
            Tarefa ta2 = new Tarefa(new Date(2010, 11, 12), "tarefa2", 3);
            ta2.add();
            Tarefa ta3 = new Tarefa(new Date(2010, 11, 12), "tarefa3", 4);
            ta3.add();
//            Tarefa ta2 = new Tarefa(new Date(2010, 11, 13), "tarefa2", 2);
//            ta2.add();
//            Tarefa ta3 = new Tarefa(new Date(2010, 11, 14), "tarefa3", 3);
//            ta3.add();
//            Tarefa ta4 = new Tarefa(new Date(2010, 11, 15), "tarefa4", 4);
//            ta4.add();
//            Tarefa ta5 = new Tarefa(new Date(2010, 11, 16), "tarefa5", 5);
//            ta5.add();
//
            Feriado fer1 = new Feriado(new Date(2010, 11, 17), "dia do Programador", "S");
            fer1.add();
//            Feriado fer2 = new Feriado(new Date(2010, 11, 18), "dia da Programadora", false);
//            fer2.add();
//            Feriado fer3 = new Feriado(new Date(2010, 11, 19), "dia do Sono", true);
//            fer3.add();








        } catch (Exception exception) {
        }

//
//        t2.setDataConclusao(new Date());
//        t2.setDescricao("ihbusgihavbfbaihfhahhsfiahfbausdguahjv64565546545");
//        t2.setPrioridade(4);

//
//        ArrayList<Evento> events = null;
//

    }
}
